package com.coupons.business.partner.service;

import java.util.List;

import com.coupons.business.common.exception.BaseCouponsAppException;
import com.coupons.business.common.vo.Partner;
import com.coupons.business.partner.controller.IPartnerManager;
import com.coupons.business.partner.dao.IPartnerDAO;

public class PartnerManagerService implements IPartnerManager {
	
	protected IPartnerDAO partnerDAO;
	
	public IPartnerDAO getPartnerDAO() {
		return partnerDAO;
	}

	public void setPartnerDAO(IPartnerDAO partnerDAO) {
		this.partnerDAO = partnerDAO;
	}

	public void createPartner(Partner objaPartner)
			throws BaseCouponsAppException {
		partnerDAO.createPartner(objaPartner);

	}

	public void updatePartner(Partner objaPartner)
			throws BaseCouponsAppException {
		

	}

	public Partner getPartner(int partnerId) throws BaseCouponsAppException {
		
		return partnerDAO.getPartner(partnerId);
	}

	public List<Partner> getAllPartners() throws BaseCouponsAppException {
		
		return partnerDAO.getAllPartners();
	}

}
